package com.edoomath.api.servcice;

import java.util.Map;

import com.edoomath.api.entity.Recharge;
import com.edoomath.entity.recharge.RechargeOrder;
import com.edoomath.entity.user.User;

public interface RechargeOrderService {
	
	/**
	 * 
	 * @param orderId
	 * @return
	 */
	public RechargeOrder load(Long orderId);
	
	
	/**
	 * 
	 * @param recharge
	 * @param user
	 * @return
	 */
	public RechargeOrder createOrder(Recharge recharge, User user);
	
	/**
	 * 
	 * @param rechargeOrder
	 * @param user
	 * @param remoteIp
	 * @return
	 */
	public Map<String, Object> prepay(RechargeOrder rechargeOrder, User user, String remoteIp);

}
